package com.ssm.hj.controller;

import com.ssm.hj.service.QuestionBankService;
import com.ssm.hj.view.TypeMap;
import com.ssm.pojo.QuestionBank;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class QuestionBankController {
    @Resource
    private QuestionBankService questionBankService;

    @RequestMapping("/hj/queryQuestionBankType1")
    public List<QuestionBank> queryQuestionBankType1() throws Exception{
        return this.questionBankService.queryQuestionBankType1Service();
    }
    @RequestMapping("/hj/queryQuestionBankType2")
    public List<QuestionBank> queryQuestionBankType2() throws Exception{
        return this.questionBankService.queryQuestionBankType2Service();
    }
    @RequestMapping("/hj/queryQuestionBankTypeAll")
    public List<TypeMap> queryQuestionBankTypeAll() throws Exception {
        return this.questionBankService.queryQuestionBankTypeAllService();
    }
}
